package com.alatus.service.impl;

import com.alatus.manager.StatisticManager;
import com.alatus.result.ChartData;
import com.alatus.result.SummaryData;
import com.alatus.service.StatisticService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StatisticServiceImpl implements StatisticService {
    @Resource
    private StatisticManager statisticManager;
    @Override
    public SummaryData loadSummary() {
        return statisticManager.loadSummaryData();
    }

    @Override
    public List<ChartData> loadSaleFunnel() {
        return statisticManager.loadSaleFunnel();
    }

    @Override
    public List<ChartData> loadSourcePie() {
        return statisticManager.loadSourcePie();
    }
}
